package com.idp.web.test.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * 产品类型实体类.
 * 
 * <pre>
 * 	历史记录：
 * 	2017-06-02 Amber
 * 	新建文件
 * </pre>
 * 
 * @author
 * 
 *         <pre>
 * SD
 * 	Amber
 * PG
 *	Amber
 * UT
 *
 * MA
 *         </pre>
 * 
 * @version $Rev$
 *
 *          <p/>
 *          $Id$
 *
 */
public class ProductType implements Serializable {

	private static final long serialVersionUID = 1L;

	/** id */
	private Integer id;
	/** name */
	private String name;
	/** code */
	private String code;
	/** description */
	private String description;
	/** parent */
	private Integer parent;
	/** sort */
	private Integer sort;

	private Integer childCount;
	
	private List<ProductType> childList;
	
	public ProductType() {
		parent = 0;
		sort = 1;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 方法: 取得String
	 * 
	 * @return: String name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * 方法: 设置String
	 * 
	 * @param: String
	 *             name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 方法: 取得String
	 * 
	 * @return: String code
	 */
	public String getCode() {
		return this.code;
	}

	/**
	 * 方法: 设置String
	 * 
	 * @param: String
	 *             code
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * 方法: 取得String
	 * 
	 * @return: String description
	 */
	public String getDesc() {
		return this.description;
	}

	/**
	 * 方法: 设置String
	 * 
	 * @param: String
	 *             description
	 */
	public void setDesc(String description) {
		this.description = description;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer parent
	 */
	public Integer getParent() {
		return this.parent;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             parent
	 */
	public void setParent(Integer parent) {
		this.parent = parent;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer sort
	 */
	public Integer getSort() {
		return this.sort;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             sort
	 */
	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getChildCount() {
		return childCount;
	}

	public void setChildCount(Integer childCount) {
		this.childCount = childCount;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "ProductType [id=" + id + ", name=" + name + ", code=" + code + ", description=" + description
				+ ", parent=" + parent + ", sort=" + sort + "]";
	}

	public List<ProductType> getChildList() {
		return childList;
	}

	public void setChildList(List<ProductType> childList) {
		this.childList = childList;
	}

}
